package com.demo.common.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.msteam.extra.generator.Display;
import com.msteam.extra.model.MasterModel;
import com.msteam.extra.model.base.BaseModel;

import lombok.JFinalModel;

/**
 * 本 demo 仅表达最为粗浅的 jfinal 用法，更为有价值的实用的企业级用法
 * 详见 JFinal 俱乐部: http://jfinal.com/club
 * 
 * Blog model.
 * 数据库字段名建议使用驼峰命名规则，便于与 java 代码保持一致，如字段名： userId
 */
@JFinalModel
@Entity
@Display("博客表")
@Table(name = "blog")
public class Blog extends BaseModel<Blog> {
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name="ID")
	private Long id;
	
	@Column(name="TITLE")
	private String title;
	
	@Column(name="CONTENT")
	private String content;
	
	@Column(name="CONTENT2")
	private String content2;
	
	@Column(name="CONTENT3")
	private String content3;
}
